/*
 
   Copyright 2012 Harri Smatt
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   
 */

package com.swtplayer;

import com.androidquery.AQuery;
import com.common.MyApp;
import com.readystatesoftware.viewbadger.BadgeView;
import com.swtplayer.R;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.widget.TextView;

/**
 * Simple Activity for curl testing.
 * 
 * @author harism
 */
public class PayActivity extends Activity {

	  
	AQuery aq = new AQuery(PayActivity.this);
	MyApp _app=MyApp.getInstance();
	int index=0;
	String url ;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.pay); 
		_app.addActivity(this);
		InitContent();
	}
  
	public void InitContent()
	{
		String htmlstr =getString(R.string.paytxt);
		TextView paytxt=(TextView)findViewById(R.id.paytxt);
		paytxt.setText(Html.fromHtml(htmlstr));
		paytxt.setMovementMethod(LinkMovementMethod.getInstance());
		
	}

	@Override
	protected void onPause() {	 
		super.onPause();
	}
	
	public boolean onOptionsItemSelected(MenuItem item) {
		boolean status = true;
		status=  _app.OptionsItemSelectedOpt(item);
		return status;
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		super.onCreateOptionsMenu(menu);
		getMenuInflater().inflate(R.menu.home_menu, menu);
		return true;
	}


}